package org.example.core.exception;

/**
 * @author 小杰_cc
 * @version 1.0
 */
public class CustomException extends RuntimeException{
    private static final long serialVersionUID = 1L;
    private int code;
    private String msg;

    private CustomException(){}

    public CustomException(int code,String msg){
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}